﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TopBuilds.Restaurant.ManagementClient
{
    public class Test
      {
          private int    id;
          private string name;
          private string param1;

          public Test()
          {
          }

          public Test(int id, string name, string param1)
          {
              this.id           = id;
              this.name         = name;
              this.param1       = param1;
          }

           public int Id
          {
              get { return id; }
              set{ id = value; }
          }

           public override string ToString()
           {
               return Name;
           }

          public string Name
          {
              get { return name; }
              set{ name = value; }
          }

          public string Param1
          {
              get { return param1; }
              set { param1 = value; }
          }
      }

    public class TestCollection : System.Collections.ObjectModel.ObservableCollection<Test>
    {
        public TestCollection()
            : base()
        {
            Add(new Test(1, "Michael", "Bellevue"));
            Add(new Test(2, "Jeff", "Redmond"));
            Add(new Test(3, "Christina", "Kirkland"));
            Add(new Test(4, "Samantha", "Seattle"));
        }
    }
}
